/**
 * 
 */
package gpl.scotlandyard.exceptions;

import gpl.scotlandyard.beans.basics.Link;
import gpl.scotlandyard.beans.basics.Player;

/** This exception is thrown when a move is not possible. It could be caused by a lake of tickets or because the
 * destination node is unreachable from current position.
 * 
 * @author norbert */
public class IllegalMoveException extends Exception {

  private static final long serialVersionUID = 1L;

  private final Player player;

  private final Link link;

  /** @param player
   * @param link */
  public IllegalMoveException(Player player, Link link) {
    this.player = player;
    this.link = link;
  }

  /** @return the player */
  public final Player getPlayer() {
    return player;
  }

  /** @return the link */
  public final Link getLink() {
    return link;
  }

}
